package lesson22.Task02;

public class Manufacturer 
{
	private String firmName;
	private String firmCountry;
	private String firmAddress;
	private String firmTelephone;
	private String firmFax;
	
	public Manufacturer(String name, String country, String address, String telephone, String fax) throws InvalidDataException 
	{
		if(name != null)
		{
			this.firmName = name;
		}
		else
		{
			throw new InvalidDataException();
		}
		if(country != null)
		{
		this.firmCountry = country;
		}
		else
		{
			throw new InvalidDataException();
		}
		if(address != null)
		{
		this.firmAddress = address;
		}
		else
		{
			throw new InvalidDataException();
		}
		if(telephone != null)
		{
		this.firmTelephone = telephone;
		}
		else
		{
			throw new InvalidDataException();
		}
		if(name != null)
		{
		this.firmFax = fax;
		}
		else
		{
			throw new InvalidDataException();
		}
	}
}
